package com.kaishun.study.controller;

import com.kaishun.study.entity.KfPatrolItemDetail;
import com.kaishun.study.service.KfPatrolItemDetailService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 检查点详情信息(KfPatrolItemDetail)表控制层
 *
 * @author easycode
 * @since 2021-12-08 18:07:13
 */
@RestController
@RequestMapping("kfPatrolItemDetail")
public class KfPatrolItemDetailController {
    /**
     * 服务对象
     */
    @Resource
    private KfPatrolItemDetailService kfPatrolItemDetailService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public KfPatrolItemDetail selectOne(Integer id) {
        return this.kfPatrolItemDetailService.queryById(id);
    }

}
